@using BusinessLibrary

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
	<head>
        <title>@ViewBag.Title</title>
        <meta name="viewport" content="width=device-width" />
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
        <link rel="stylesheet" href="~/Content/styles.css" />
          <script src="../../Scripts/MMS.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"></script>
        <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
        <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
        <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.unobtrusive-ajax.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
        <style type="text/css">
            #conteneur {
                opacity:0.2
            }
        </style>
        <script type="text/javascript">
            $(document).ready(function () {
                $(window).load(function () {
                    $('#conteneur').animate({ opacity: 1 }, 1000);
                });

            });
    
        </script>

	</head>
    <body>
        <div id="conteneur">
            <div id="header">NHK Bank
                <p style="padding-top: 2em; float: right; color: white; font-size: 20px">
                    @if (User.Identity.IsAuthenticated) 
                    { 
                        @: Hello  <b><i>@User.Identity.Name</i></b> (@Html.ActionLink("LogOut", "LogOut", "Account"))
                    }
                    else { 
                        @Html.ActionLink("Log On", "LogOn", "Account")
                    }
                </p>
            </div>
		  
            <div id="haut">
                <ul class="menuhaut" style="float: left">
                    @if (User.Identity.IsAuthenticated)
                    {
                        if (Roles.Provider.IsUserInRole(User.Identity.Name, Constants.FV_ROLE))
                        {
                            <li><a href="@Url.Action("FVCustomers", "CusMgn")">List Your Available Customers</a></li>
                        }
                        if (Roles.Provider.IsUserInRole(User.Identity.Name, Constants.REVIEWER_ROLE))
                        {
                            <li><a href="@Url.Action("Allocation", "CusMgn")">FV Allocation Board</a></li>
                            <li><a href="@Url.Action("Processing", "CusMgn")">FV Processing Board</a></li>
                            <li><a href="@Url.Action("Checking", "CusMgn")">FV Checking Board</a></li>
                            <li><a href="@Url.Action("StoreResult", "CusMgn")">Result Store</a></li>
                        }
                        if (Roles.Provider.IsUserInRole(User.Identity.Name, Constants.ADMIN_ROLE))
                        {
                            <li><a href="@Url.Action("Index","Employee")">Employee Management</a></li>
                            <li><a href="@Url.Action("ListCusIndex", "CusMgn")">Customer Management</a></li>
                            <li><a href="@Url.Action("Index", "Group")">Group Management</a></li>
                            <li><a href="@Url.Action("Index", "Role")">Role Management</a></li>
                        
                        }
                    }
                    
                   
                </ul>
                
            </div>

            <div id="centre">
                @*@Html.Partial("_ViewSwitcher")*@
                @RenderBody()
            </div>
            <div id="pied">Design by Kenny Cao, follow me with this link <a href="http://www.facebook.com/cao.kenny?ref=tn_tnmn">facebook</a></div>
        </div>
      
    </body>
</html>
